export const sendWebSocket = (ws, type, data) => {
    ws.send(JSON.stringify({ type, data }))
}